package com.mmd.core.config;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

import java.util.Arrays;

@Slf4j
@Component
public class StartApplication implements ApplicationRunner {
    @Override
    public void run(ApplicationArguments args) {
        log.info("启动参数{}", Arrays.toString(args.getSourceArgs()));
        log.info("程序启动完成");
    }
}
